package com.project.bookstore.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 
 * @TableName bill
 */
@TableName(value ="bill")
@Data
@Accessors(chain = true)
public class Bill implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 账号
     */
    private String account;

    /**
     * 余额
     */
    private BigDecimal balance;

    /**
     * 交易
     */
    private BigDecimal trade;

    /**
     * 交易对象
     */
    private String tradeTo;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 方式
     */
    private String way;

    /**
     * 订单id
     */
    private String  orderId;

    /**
     * 创建时间
     */
    private LocalDateTime created;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}